package com.liang.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liang.subject.infra.basic.entity.SubjectCategory;

import java.util.List;

/**
* @author 29018
* @description 针对表【subject_category(题目分类)】的数据库操作Service
* @createDate 2024-09-18 22:47:16
*/
public interface SubjectCategoryService extends IService<SubjectCategory> {

    /**
     * 查询题目大类
     */
    List<SubjectCategory> queryCategory(SubjectCategory subjectCategory);

    /**
     * 查询二级分类
     */
    List<SubjectCategory> queryCategoryByPrimary(SubjectCategory subjectCategory);

    /**
     * 获取大类题目的数量
     */
    Integer getSubjectCount(Long id);

    List<SubjectCategory> queryAllCategories(Long id);
}
